package com.rc.evcharger.model.ticket;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TenantTicketScheduleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TenantTicketScheduleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTicketScheduleIdIsNull() {
            addCriterion("ticket_schedule_id is null");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdIsNotNull() {
            addCriterion("ticket_schedule_id is not null");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdEqualTo(Long value) {
            addCriterion("ticket_schedule_id =", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdNotEqualTo(Long value) {
            addCriterion("ticket_schedule_id <>", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdGreaterThan(Long value) {
            addCriterion("ticket_schedule_id >", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ticket_schedule_id >=", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdLessThan(Long value) {
            addCriterion("ticket_schedule_id <", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdLessThanOrEqualTo(Long value) {
            addCriterion("ticket_schedule_id <=", value, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdIn(List<Long> values) {
            addCriterion("ticket_schedule_id in", values, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdNotIn(List<Long> values) {
            addCriterion("ticket_schedule_id not in", values, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdBetween(Long value1, Long value2) {
            addCriterion("ticket_schedule_id between", value1, value2, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleIdNotBetween(Long value1, Long value2) {
            addCriterion("ticket_schedule_id not between", value1, value2, "ticketScheduleId");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNull() {
            addCriterion("tenant_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNotNull() {
            addCriterion("tenant_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeEqualTo(String value) {
            addCriterion("tenant_code =", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotEqualTo(String value) {
            addCriterion("tenant_code <>", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThan(String value) {
            addCriterion("tenant_code >", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_code >=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThan(String value) {
            addCriterion("tenant_code <", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_code <=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLike(String value) {
            addCriterion("tenant_code like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotLike(String value) {
            addCriterion("tenant_code not like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIn(List<String> values) {
            addCriterion("tenant_code in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotIn(List<String> values) {
            addCriterion("tenant_code not in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeBetween(String value1, String value2) {
            addCriterion("tenant_code between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_code not between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNull() {
            addCriterion("member_id is null");
            return (Criteria) this;
        }

        public Criteria andMemberIdIsNotNull() {
            addCriterion("member_id is not null");
            return (Criteria) this;
        }

        public Criteria andMemberIdEqualTo(Long value) {
            addCriterion("member_id =", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotEqualTo(Long value) {
            addCriterion("member_id <>", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThan(Long value) {
            addCriterion("member_id >", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
            addCriterion("member_id >=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThan(Long value) {
            addCriterion("member_id <", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdLessThanOrEqualTo(Long value) {
            addCriterion("member_id <=", value, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdIn(List<Long> values) {
            addCriterion("member_id in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotIn(List<Long> values) {
            addCriterion("member_id not in", values, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdBetween(Long value1, Long value2) {
            addCriterion("member_id between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andMemberIdNotBetween(Long value1, Long value2) {
            addCriterion("member_id not between", value1, value2, "memberId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdIsNull() {
            addCriterion("ticket_type_id is null");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdIsNotNull() {
            addCriterion("ticket_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdEqualTo(Long value) {
            addCriterion("ticket_type_id =", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdNotEqualTo(Long value) {
            addCriterion("ticket_type_id <>", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdGreaterThan(Long value) {
            addCriterion("ticket_type_id >", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ticket_type_id >=", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdLessThan(Long value) {
            addCriterion("ticket_type_id <", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("ticket_type_id <=", value, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdIn(List<Long> values) {
            addCriterion("ticket_type_id in", values, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdNotIn(List<Long> values) {
            addCriterion("ticket_type_id not in", values, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdBetween(Long value1, Long value2) {
            addCriterion("ticket_type_id between", value1, value2, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("ticket_type_id not between", value1, value2, "ticketTypeId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdIsNull() {
            addCriterion("ticket_send_record_id is null");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdIsNotNull() {
            addCriterion("ticket_send_record_id is not null");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdEqualTo(Long value) {
            addCriterion("ticket_send_record_id =", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdNotEqualTo(Long value) {
            addCriterion("ticket_send_record_id <>", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdGreaterThan(Long value) {
            addCriterion("ticket_send_record_id >", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ticket_send_record_id >=", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdLessThan(Long value) {
            addCriterion("ticket_send_record_id <", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdLessThanOrEqualTo(Long value) {
            addCriterion("ticket_send_record_id <=", value, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdIn(List<Long> values) {
            addCriterion("ticket_send_record_id in", values, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdNotIn(List<Long> values) {
            addCriterion("ticket_send_record_id not in", values, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdBetween(Long value1, Long value2) {
            addCriterion("ticket_send_record_id between", value1, value2, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketSendRecordIdNotBetween(Long value1, Long value2) {
            addCriterion("ticket_send_record_id not between", value1, value2, "ticketSendRecordId");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountIsNull() {
            addCriterion("ticket_schedule_count is null");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountIsNotNull() {
            addCriterion("ticket_schedule_count is not null");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountEqualTo(Integer value) {
            addCriterion("ticket_schedule_count =", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountNotEqualTo(Integer value) {
            addCriterion("ticket_schedule_count <>", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountGreaterThan(Integer value) {
            addCriterion("ticket_schedule_count >", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("ticket_schedule_count >=", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountLessThan(Integer value) {
            addCriterion("ticket_schedule_count <", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountLessThanOrEqualTo(Integer value) {
            addCriterion("ticket_schedule_count <=", value, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountIn(List<Integer> values) {
            addCriterion("ticket_schedule_count in", values, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountNotIn(List<Integer> values) {
            addCriterion("ticket_schedule_count not in", values, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountBetween(Integer value1, Integer value2) {
            addCriterion("ticket_schedule_count between", value1, value2, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andTicketScheduleCountNotBetween(Integer value1, Integer value2) {
            addCriterion("ticket_schedule_count not between", value1, value2, "ticketScheduleCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountIsNull() {
            addCriterion("remain_count is null");
            return (Criteria) this;
        }

        public Criteria andRemainCountIsNotNull() {
            addCriterion("remain_count is not null");
            return (Criteria) this;
        }

        public Criteria andRemainCountEqualTo(Integer value) {
            addCriterion("remain_count =", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountNotEqualTo(Integer value) {
            addCriterion("remain_count <>", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountGreaterThan(Integer value) {
            addCriterion("remain_count >", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("remain_count >=", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountLessThan(Integer value) {
            addCriterion("remain_count <", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountLessThanOrEqualTo(Integer value) {
            addCriterion("remain_count <=", value, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountIn(List<Integer> values) {
            addCriterion("remain_count in", values, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountNotIn(List<Integer> values) {
            addCriterion("remain_count not in", values, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountBetween(Integer value1, Integer value2) {
            addCriterion("remain_count between", value1, value2, "remainCount");
            return (Criteria) this;
        }

        public Criteria andRemainCountNotBetween(Integer value1, Integer value2) {
            addCriterion("remain_count not between", value1, value2, "remainCount");
            return (Criteria) this;
        }

        public Criteria andSendTypeIsNull() {
            addCriterion("send_type is null");
            return (Criteria) this;
        }

        public Criteria andSendTypeIsNotNull() {
            addCriterion("send_type is not null");
            return (Criteria) this;
        }

        public Criteria andSendTypeEqualTo(String value) {
            addCriterion("send_type =", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeNotEqualTo(String value) {
            addCriterion("send_type <>", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeGreaterThan(String value) {
            addCriterion("send_type >", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeGreaterThanOrEqualTo(String value) {
            addCriterion("send_type >=", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeLessThan(String value) {
            addCriterion("send_type <", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeLessThanOrEqualTo(String value) {
            addCriterion("send_type <=", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeLike(String value) {
            addCriterion("send_type like", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeNotLike(String value) {
            addCriterion("send_type not like", value, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeIn(List<String> values) {
            addCriterion("send_type in", values, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeNotIn(List<String> values) {
            addCriterion("send_type not in", values, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeBetween(String value1, String value2) {
            addCriterion("send_type between", value1, value2, "sendType");
            return (Criteria) this;
        }

        public Criteria andSendTypeNotBetween(String value1, String value2) {
            addCriterion("send_type not between", value1, value2, "sendType");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodIsNull() {
            addCriterion("schedule_period is null");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodIsNotNull() {
            addCriterion("schedule_period is not null");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodEqualTo(String value) {
            addCriterion("schedule_period =", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodNotEqualTo(String value) {
            addCriterion("schedule_period <>", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodGreaterThan(String value) {
            addCriterion("schedule_period >", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodGreaterThanOrEqualTo(String value) {
            addCriterion("schedule_period >=", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodLessThan(String value) {
            addCriterion("schedule_period <", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodLessThanOrEqualTo(String value) {
            addCriterion("schedule_period <=", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodLike(String value) {
            addCriterion("schedule_period like", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodNotLike(String value) {
            addCriterion("schedule_period not like", value, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodIn(List<String> values) {
            addCriterion("schedule_period in", values, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodNotIn(List<String> values) {
            addCriterion("schedule_period not in", values, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodBetween(String value1, String value2) {
            addCriterion("schedule_period between", value1, value2, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andSchedulePeriodNotBetween(String value1, String value2) {
            addCriterion("schedule_period not between", value1, value2, "schedulePeriod");
            return (Criteria) this;
        }

        public Criteria andPeriodCountIsNull() {
            addCriterion("period_count is null");
            return (Criteria) this;
        }

        public Criteria andPeriodCountIsNotNull() {
            addCriterion("period_count is not null");
            return (Criteria) this;
        }

        public Criteria andPeriodCountEqualTo(Integer value) {
            addCriterion("period_count =", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountNotEqualTo(Integer value) {
            addCriterion("period_count <>", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountGreaterThan(Integer value) {
            addCriterion("period_count >", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("period_count >=", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountLessThan(Integer value) {
            addCriterion("period_count <", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountLessThanOrEqualTo(Integer value) {
            addCriterion("period_count <=", value, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountIn(List<Integer> values) {
            addCriterion("period_count in", values, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountNotIn(List<Integer> values) {
            addCriterion("period_count not in", values, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountBetween(Integer value1, Integer value2) {
            addCriterion("period_count between", value1, value2, "periodCount");
            return (Criteria) this;
        }

        public Criteria andPeriodCountNotBetween(Integer value1, Integer value2) {
            addCriterion("period_count not between", value1, value2, "periodCount");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeIsNull() {
            addCriterion("first_send_time is null");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeIsNotNull() {
            addCriterion("first_send_time is not null");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeEqualTo(Date value) {
            addCriterion("first_send_time =", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeNotEqualTo(Date value) {
            addCriterion("first_send_time <>", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeGreaterThan(Date value) {
            addCriterion("first_send_time >", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("first_send_time >=", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeLessThan(Date value) {
            addCriterion("first_send_time <", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeLessThanOrEqualTo(Date value) {
            addCriterion("first_send_time <=", value, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeIn(List<Date> values) {
            addCriterion("first_send_time in", values, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeNotIn(List<Date> values) {
            addCriterion("first_send_time not in", values, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeBetween(Date value1, Date value2) {
            addCriterion("first_send_time between", value1, value2, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andFirstSendTimeNotBetween(Date value1, Date value2) {
            addCriterion("first_send_time not between", value1, value2, "firstSendTime");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}